<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body>
<!-- Modal点击找朋友后触发的模态框 -->
<div class="modal fade" id="staticBackdrop" data-backdrop="static" tabindex="-1" role="dialog"
     aria-labelledby="staticBackdropLabel" aria-hidden="true" th:fragment="modal">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="staticBackdropLabel">寻找好友！</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="cleanContent()">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-md-12">
                        <label>
                            <input id="param" type="text" style="color: grey; width: 400px; height: 40px"
                                   placeholder="输入用户名或邮箱来进行查找。。">
                        </label>
                    </div>
                </div>
                <!-- 查找到用户后，显示在下方div中-->
                <div class="row toAdd d-none">
                    <div class="card ml-3 w-100">
                        <div class="row no-gutters">
                            <div class="col-md-3">
                                <img style="width: 117.1px; height: 117.1px" id="findFriendImg" src="img/author-main1.jpg" class="card-img">
                            </div>
                            <div class="col-md-7">
                                <div class="card-body">
                                    <h5 class="card-title" id="username"></h5>
                                    <p class="card-text" id="user_info"></p>
                                    <p class="card-text" id="user_email"></p>
                                </div>
                            </div>
                            <div class="col-md-2 text-center my-auto ">
                                <span class="notification-icon ">
                                <a onclick="addFriend()" class="accept-request">
                                    <span class="icon-add without-text">
                                        <svg class="olymp-happy-face-icon">
                                            <use xlink:href="svg-icons/sprites/icons.svg#olymp-happy-face-icon">
                                            </use>
                                        </svg>
                                    </span>
                                </a>
                            </span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal" onclick="cleanContent()">关闭
                </button>
                <button type="button" class="btn btn-primary" onclick="findFriend()">查找</button>
            </div>
        </div>
    </div>

</div>

</body>
</html>